<?php
class GetUserInfoAction extends ApiAction
{
	public function execute()
	{
		$userDao = new UserDao();
		if ($userInfo = $userDao->getUser($_REQUEST["id"], true))
		{
			$this->view->result["code"] = 200;
			$this->view->result["data"] = $userInfo;
		}
		else
		{
			$this->view->result["code"] = 404;
			$this->view->result["message"] = "该用户不存在";
		}
		$this->view->render();
	}
}